/*
 * Copyright 2009 Douglas Lockamy, dlockamy_at_gmail.com
 * All rights reserved. Distributed under the terms of the MIT License.
 *
*/

if (!this.BitBoard) BitBoard = new BApplication("bapp/BitBoard");

BitBoard.init = function()
{
    benix.stdout("init BitBoard<br>");
    
    var window_frame = new BFrame(0,0,800,600);
    
    var window_flags = new Array();
    window_flags[0] = B_AVOID_FRONT;
    window_flags[1] = B_NO_BORDER_WINDOW_LOOK;
    
   // var desktop = new BDirectWindow(window_frame,"bdesktop","B_FLOATING_WINDOW","B_AVOID_FRONT");
    
    //showWindow(desktop);
    
};

showWindow = function(window)
{
    var myView = new BView(window.Bounds(),"BitBoard View",null,null);
    
    window.addChild(myView);
    
    window.Show();
};

BitBoard.Pulse = function()
{
    //alert('bitboard pulse');
};
